/*
 *    Copyright (c) 2020-2025, sunlei All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Author: sunlei (daizile@126.com) 爱帮科技
 *
 */
/*
{
    page:{
        current:1, //当前页数
        size:10   //每页长度
    },
    cond:{ //条件
        eq:{ // 多条件对象
                        id,//Integer
                        zoneId,//Integer 赛区ID
                        zoneName,//String 赛区名称
                        matchId,//Integer 赛项ID
                        matchName,//String 赛项名称
                        scheduleId,//Integer 赛程ID
                        scheduleName,//String 赛程名称
                        gradeId,//Integer 组别ID
                        gradeName,//String 组别名称
                        questionDes,//String 答题解析
                        questionTopic,//String 题干
                        imgUrl,//String 图片文件
                        codeFileUrl,//String 代码文件
                        score,//Integer 题目分数
                        editorUrl,//String 考试编辑器链接
                        reviewEditorUrl,//String 试题预览编辑器链接
                        isDel,//Integer 0 正常  1删除
                    }
    }
}
 */
// 分页查询
function ProgramLibPageList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programlib/pagequery","post",query,SuccessFunc,FailedFunc);
}
// 列表查询
function ProgramLibqueryList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programlib/queryList","post",query,SuccessFunc,FailedFunc);
}
// 插入数据
function ProgramLibaddObj(obj,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programlib/save", "post", obj,SuccessFunc,FailedFunc)
}
// 主键获取数据
function ProgramLibgetObj(id,SuccessFunc,FailedFunc){
    slAjax("/abkj-api-match-provider/programlib/"+id,"get",null,SuccessFunc,FailedFunc);
}

/**
 * 主键更新
 */
function ProgramLibupdateById(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/programlib/updateById","post",query,SuccessFunc,FailedFunc);
}
/**
 * 多条件 更新
 */
function ProgramLibupdateByMulCond(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/programlib/updateByMulCond","post",query,SuccessFunc,FailedFunc);
}
// 主键删除数据
function ProgramLibdelObj(id,SuccessFunc,FailedFunc) {
  slAjax("/abkj-api-match-provider/programlib/delete/"+id,"get",null,SuccessFunc,FailedFunc);
}
